home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / wiggi_wa.swf / scripts / DefineSprite_130 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  454 b   |  31 lines

  1. function onRelease()
  2. {
  3.    _alpha = 100;
  4.    _parent.fade(targ,10);
  5. }
  6. function onRollOver()
  7. {
  8.    _alpha = 100;
  9. }
  10. function onEnterFrame()
  11. {
  12.    if(scrollTimer == 0)
  13.    {
  14.       this._x -= (_X - xPos) / 5;
  15.       this._y -= (_Y - yPos) / 5;
  16.    }
  17.    else
  18.    {
  19.       scrollTimer--;
  20.    }
  21.    if(_alpha > 50)
  22.    {
  23.       _alpha = _alpha - 5;
  24.    }
  25. }
  26. stop();
  27. xPos = this._x;
  28. yPos = this._y;
  29. _X = _X + scrollPlaceX;
  30. _Y = _Y + scrollPlaceY;
  31.